package com.kk.xhr.common;

import org.mapstruct.ap.internal.util.Collections;

import java.time.LocalTime;
import java.util.Set;

/**
 * 常量
 *
 * @author luokexiong
 * @version 1.0 2021/2/13
 * @since 1.0.0
 */
public class Constants {
    /** 每页数量 */
    public static final Integer DEFAULT_LIMIT = 20;
    /** 常量0 */
    public static final Integer ZERO = 0;
    /** 上午上班标准时间 */
    public static final LocalTime WORK_EARLY_BEGIN = LocalTime.of(8, 30);
    public static final LocalTime WORK_EARLY_END = LocalTime.of(12, 0);
    /** 下午下班标准时间 */
    public static final LocalTime WORK_LATE_BEGIN = LocalTime.of(1, 30);
    public static final LocalTime WORK_LATE_END = LocalTime.of(6, 00);
    /** 实际工作时长 */
    public static final Long ALL_DURATION = 570L;
    /** 下午工作时长 */
    public static final Long AFTERNOON_DURATION = 270L;
    /** 工作时长 */
    public static final Integer DURATION = 8;
    /** 半小时 */
    public static final Integer HALF_OF_HOUR = 30;
    /** 不能删除的角色 */
    public static final Set<Long> NOT_DELETE_ROLE_SET = Collections.asSet(1L,2L,3L);
}
